﻿using BCL.BaseLib;
using BCL.BaseLib.Basics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace BCL.WPFComponent.Base
{
    public abstract class BaseFunctionControl : UserControl, IFunctionControl
    {
        private FunctionEntity fe;
        private FunctionControlSetting setting;
        public BaseFunctionControl()
        {

        }
        public BaseFunctionControl(FunctionEntity entity)
        {
            fe = entity;
        }

        public FunctionControlSetting Setting { get => setting; set => setting=value; }
        public FunctionEntity Function { get => fe; set => fe=value; }

        public abstract void LanguageBinding();

        public virtual void ReloadData(object data)
        {
            
        }
    }
}
